<template>
  <div class="home">
    <h1>{{$store.getters.getNum}}</h1>
    <h1>{{$store.getters.getAge}}</h1>
    <h1>{{$store.getters.getAgeLen}}</h1>
     <h1>{{$store.getters.filterLen(20)}}</h1>
     <h1>{{$store.state.mm}}</h1>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'HomeView',
  data() {
    return {
        resList:[{name:"张三",age:18}]
    }
  },
  created() {
     this.$store.dispatch("getList",this.resList)
  },
  components: {
    HelloWorld
  }
}
</script>
